import request from "../../util/request"

// 查询存储员工考勤记录列表
export function listAttendance(query) {
  return request({
    url: '/attendance/list',
    method: 'get',
    params: query
  })
}

// 查询存储员工考勤记录详细
export function getAttendance(AttendanceID) {
  return request({
    url: '/system/attendance/' + AttendanceID,
    method: 'get'
  })
}

// 新增存储员工考勤记录
export function addAttendance(data) {
  return request({
    url: '/system/attendance',
    method: 'post',
    data: data
  })
}

// 修改存储员工考勤记录
export function updateAttendance(data) {
  return request({
    url: '/system/attendance',
    method: 'put',
    data: data
  })
}

// 删除存储员工考勤记录
export function delAttendance(AttendanceID) {
  return request({
    url: '/system/attendance/' + AttendanceID,
    method: 'delete'
  })
}
